﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace PosClient.Model
{
    [Index("uk_orderItem_id", "OrderNo,GoodCode,Seq", true)]
    [Table(Name = "t_order_item{yyyyMM}", AsTable = "createtime=2025-02-01(1 month)")]
    public class OrderItem
    {
        [Column(IsPrimary = true, IsIdentity = true)]
        public long Id { get; set; }

        public int Seq { get; set; }

        public int Tag { get; set; }

        public long OrderId{ get; set; }

        public string OrderNo { get; set; }

        public int GoodId { get; set; }

        public string GoodCode { get; set; }

        public string GoodName { get; set; }

        public string BarCode { get; set; }

        public decimal OriginAmount { get; set; }

        public decimal DiscountAmount { get; set; }

        public decimal OriginPrice { get; set; }

        public decimal Price { get; set; }

        public decimal VipPrice { get; set; }

        public decimal Quantity { get; set; }

        public int PluType { get; set; }

        public decimal Amount { get; set; }

        public int Weight { get; set; }

        public DateTime CreateTime { get; set; }

        public long Promote1 { get; set; }

        public decimal PromotePrice1 { get; set; }

        public long Promote2 { get; set; }

        public decimal PromotePrice2 { get; set; }

        public long Promote3 { get; set; }

        public decimal PromotePrice3 { get; set; }

        public long Promote4 { get; set; }

        public decimal PromotePrice4 { get; set; }

        public int GoodType { get; set; }
    }
}
